home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 47.7z
/
BS1 part 47
/
ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].7z
/
ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].adf
/
piarc.lzh.parta
/
neg.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-17
|
2KB
|
43 lines
/*
* NEG.rexx a simple P.I. module intended as an example for developers
*
* Written by: Barry Chalmers
* Last Update: January 1st, 1992
* Revision: 1.2
* For: Black Belt Systems image processing series IM, IM F/c, and IP.
*/
/*
* Always include this block of code which loads the libraries:
*/
if ~show('L',"rexxsupport.library") then do
if addlib('rexxsupport.library',0,-30,0) then do
/* everything's ok */
end;
else do
say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
say 'Cannot operate this module without the library - sorry!';
exit 10;
end;
end;
prtnme = 'IM_Port';
/*
* The function-specific portion of the script begins here:
* --------------------------------------------------------
*/
address(prtnme); /* communicate with image processor we found */
'area'; /* have user specify the area they want to affect */
options results; /* allow return values from command we're about to do */
'jackin'; /* attach to image processor's internal data structure */
jackptr = result; /* fetch the return value from the std ARexx return */
options; /* disallow return values from further commands */
address command; /* communicate with Amiga SHELL, we're going to use it */
'cmpi:neg '||jackptr; /* run the SHELL command that does the actual work */
address(prtnme); /* communicate with image processor again */
'redraw'; /* redraw the screen so user sees results of command */
exit 0; /* Done. That's all there is to most PI Modules! */